package com.glut.campusrepair.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.glut.campusrepair.entity.FailureRepair;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 *传到前端卡片的内容
 * @author weisiyuan
 * @createtime 2024/7/25 20:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RepairTasksShortdto {

    /**
     * 任务ID
     */
    private Integer taskId;

    /**
     * 任务状态
     */
    private String status;

    /**
     * 故障报修ID
     */
    private Integer failureRepairId;

    /**
     * 维修人员ID
     */
    private Integer repairPersonnelId;

    /**
     * 任务分配时间
     */
    private Date assignedTime;

    /**
     * 任务接受时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date acceptanceTime;


    /*关联实体*/
    private FailureRepair failureRepair;

}
